MdbVal

Wrapper class for MDB_val structures.

@note Instances of this class are movable and copyable both. @see std.algorithm.mutation @see http://symas.com/mdb/doc/group__mdb.html#structMDB__val

Constructors

this
this()

Default constructor.

this
this(string data)

Constructor. Expects a D string

this
this(char* data)

Constructor. Expects a C-string as input.

this
this(void* data, size_t size)

Constructor. Expects some data and size

this
this(MdbVal* data)

Constructor. Use a pointer to other object for a shallow copy

this
this(MdbVal data)

Constructor. Use a reference to a object to do a deep copy

Members

Functions

assign
MdbVal assign(char* data)

Assigns the value.

assign
MdbVal assign(T* data, size_t size)

Assigns the value.

assign
MdbVal assign(string data)

Assigns the value.

data
T* data()

Returns a pointer to the embedded struct

empty
bool empty()

Determines whether this value is empty.

size
size_t size()

Returns the size of the data.

toString
string toString()

Print it some useful way...

Variables

_val
MDB_val _val;
Undocumented in source.

Meta